#ifndef WIDGET_H
#define WIDGET_H
#include "mytimer.h"
#include <QWidget>
#include <QTime>
#include <QTimer>
#include <QString>
#include <QDebug>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

private slots:
    void showTime();

    void showTimeLast();

    void myTimer_Start();

    void myTimer_Stop();

    void myTimer_Clear();

    void timeAdd();

private:
    bool startPushed = false, stopPushed = false;
    Ui::Widget *ui;
    MyTimer *mm;
    QTime timeStart_msec, timeEnd_msec;
};

#endif // WIDGET_H
